package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 提问类
 *
 */
@Getter
@Setter
@JsonIgnoreProperties("handler")
public class Question extends BaseDomain {
    private String questionContent; //提问内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS",timezone = "GMT+8")
    private Date questionTime; //提问时间

    private String title;//标题

    private User author;//作者

    private Long  userId;//作者id

    private int answerNum=0;//回答人数

    private int commentNum=0;//评论人数

}